package com.migration.model.newdb;

import jakarta.persistence.*;
import lombok.Data;
import java.io.Serializable;

/**
 * 设备-化学品 实体类
 * 表名：risk_device_chemical
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "risk_device_chemical")
public class RiskDeviceChemical implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 设备ID
     */
    @Column(name = "device_id", nullable = false)
    private Long deviceId;
    
    /**
     * 化学品ID
     */
    @Column(name = "chemical_id", nullable = false)
    private Long chemicalId;
    
    @Override
    public String toString() {
        return "RiskDeviceChemical{" +
            "id=" + id +
            ", deviceId=" + deviceId +
            ", chemicalId=" + chemicalId +
        '}';
    }
} 